package com.ayf.payment.game.api.entity;

import com.ayf.payment.game.api.entity.base.BaseEntity;
import com.ayf.payment.game.api.type.AdditionalStatus;
import com.ayf.payment.game.api.type.YesAndNo;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "g_template_integral")
public class TemplateIntegral extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 模板id
     */
    @Column(name = "template_id")
    private String templateId;

    /**
     * 积分名称
     */
    @Column(name = "integral_name")
    private String integralName;

    /**
     * 是否显示：'YES'是；'NO'否；默认'NO'
     */
    @Column(name = "is_show")
    private YesAndNo isShow;

    /**
     * 积分文件地址
     */
    @Column(name = "integral_file_path")
    private String integralFilePath;

    /**
     * 赠送比例：1RMB多少积分
     */
    @Column(name = "donation_ratio")
    private Integer donationRatio;

    /**
     * 状态：'CLOSE'关闭,'AMOUNT'按金额赠送,'AMOUNT_CHANNEL'金额加渠道,'AMOUNT_ESCITATION'金额加激励,'AMOUNT_CHANNEL_ESCITATION'金额加渠道加激励
     */
    @Column(name = "integral_status")
    private AdditionalStatus integralStatus;

    /**
     * 获取模板id
     *
     * @return template_id - 模板id
     */
    public String getTemplateId() {
        return templateId;
    }

    /**
     * 设置模板id
     *
     * @param templateId 模板id
     */
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    /**
     * 获取积分名称
     *
     * @return integral_name - 积分名称
     */
    public String getIntegralName() {
        return integralName;
    }

    /**
     * 设置积分名称
     *
     * @param integralName 积分名称
     */
    public void setIntegralName(String integralName) {
        this.integralName = integralName;
    }

    /**
     * 获取积分文件地址
     *
     * @return integral_file_path - 积分文件地址
     */
    public String getIntegralFilePath() {
        return integralFilePath;
    }

    /**
     * 设置积分文件地址
     *
     * @param integralFilePath 积分文件地址
     */
    public void setIntegralFilePath(String integralFilePath) {
        this.integralFilePath = integralFilePath;
    }

    /**
     * 获取赠送比例：1RMB多少积分
     *
     * @return donation_ratio - 赠送比例：1RMB多少积分
     */
    public Integer getDonationRatio() {
        return donationRatio;
    }

    /**
     * 设置赠送比例：1RMB多少积分
     *
     * @param donationRatio 赠送比例：1RMB多少积分
     */
    public void setDonationRatio(Integer donationRatio) {
        this.donationRatio = donationRatio;
    }

    public YesAndNo getIsShow() {
        return isShow;
    }

    public void setIsShow(YesAndNo isShow) {
        this.isShow = isShow;
    }

    public AdditionalStatus getIntegralStatus() {
        return integralStatus;
    }

    public void setIntegralStatus(AdditionalStatus integralStatus) {
        this.integralStatus = integralStatus;
    }
}